<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="decorator" uri="http://www.opensymphony.com/sitemesh/decorator"%>
<%@ taglib prefix="page" uri="http://www.opensymphony.com/sitemesh/page"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><decorator:title default="Struts Starter" />
</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<base href="<%=basePath%>" />

<link rel="stylesheet" type="text/css" href="ui/bootstrap/css/bootstrap.css" />

<script src="scripts/vendor/LAB.js"></script>
<script>
$LAB.script('<%=basePath%>scripts/vendor/jquery-1.7.1.min.js').wait()
.script('<%=basePath%>scripts/vendor/knockout-2.0.0.js')
.script('<%=basePath%>ui/bootstrap/js/bootstrap-dropdown.js').script('<%=basePath%>scripts/vendor/wUtils.js').wait(function(){
	$.ajaxSettings.async = false;
});
</script>

<decorator:head />


</head>
<body>
	<div class="container">
		<div class="navbar">
			<div class="navbar-inner">
				<div style="width: auto;" class="container">
					<a data-target=".nav-collapse" data-toggle="collapse"
						class="btn btn-navbar"> <span class="icon-bar"></span> <span
						class="icon-bar"></span> <span class="icon-bar"></span> </a> <a
						href="#" class="brand"><s:text name="web-name" />
					</a>
					<div class="nav-collapse">
						<ul class="nav">
							<li><a href="course/want-study.action">想学</a>
							</li>
							<li><a href="course/set-up-course.action">想教</a>
							</li>
							<li><a href="course/studied.action?pid=<s:property value="currentPerson.id"/>">正在学</a>
							</li>
							<li><a href="course/teachings.action?tId=1">正在教</a>
							</li>
						</ul>
						<ul class="nav pull-right">
							<li class="divider-vertical"></li>
							<li class="dropdown">
							<a data-toggle="dropdown"
								class="dropdown-toggle" href="#"><i class="icon-user icon-white"></i><s:property
										value="currentPerson" /> <b class="caret"></b>
							</a>
								<ul class="dropdown-menu">
									<li><a href='person/space.action?pid=<s:property value="currentPerson.id"/>'>个人空间</a>
									</li>
									<li><a href="person/admin.action">个人信息管理</a>
									</li>
									<li class="divider"></li>
									<li><a href="logout.action">退出</a>
									</li>
								</ul></li>
						</ul>
					</div>
					<!-- /.nav-collapse -->
				</div>
			</div>
			<!-- /navbar-inner -->
		</div>
	</div>
	<div class="container">
		<decorator:body />
	</div>

</body>

</html>
